using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Adge.Models;
using System.Collections.Generic;

namespace Adge.Web.UI
{
    public partial class magContent : AdgePageBase
    {
        string AId
        {
            get
            {
                string _newsId = string.Empty;
                if (Request["downloadid"] != null)
                {
                    _newsId = Request["downloadid"];
                }
                return _newsId;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                InitInfos();
            }
        }

        private void InitInfos()
        {
            Adge.BLL.AdgeArBase<AttachmentInfo> attBll = new Adge.BLL.AdgeArBase<AttachmentInfo>();
            AttachmentInfo attinfo = attBll.GetEntityById(AId);
            if (attinfo != null)
            {
                lblCotent.Text = attinfo.Description;
            }
        }
    }
}
